﻿using System;
using System.Collections.Generic;
using System.Text;

using ECCIT.Business.Model;
using OgilvyOne.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class SponsorModel : BaseModel, IStaticGeneratableModel
    {
        public int? LanguageID { get; set; }
        public string Name { get; set; }
        public string LogoPath { get; set; }
        public string Detail { get; set; }
        public int? State { get; set; }
        public int? Order { get; set; }
        public int? ColumnID { get; set; }
        public string LayerIDs { get; set; }
        public int? TemplateID { get; set; }
        public string HtmlFilePath { get; set; }
        public DateTime InsertedTime { get; set; }
        public DateTime UpdatedTime { get; set; }

        #region IStaticGeneratableModel 成员

        public ModelManageModel Template { get; set; }
        public ColumnModel Column { get; set; }
        public int? ID { get; set; }
        public bool IsHtmlFile { get; set; }
        public int Preview { get; set; }
        public string HtmlFileName { get; set; }
        public string SEOTitle { get; set; }
        public string SEOMetaKeywords { get; set; }
        public string SEOMetaDescription { get; set; }
        #endregion

        public SponsorModel() { }

        public SponsorModel(int? langID, int? id, string name, string logoPath, string detail, int? state, int? order, int? columnID, string layerIDs, int templateID,string htmlFilePath, DateTime insertedTime, DateTime updatedTime)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.Name = name;
            this.LogoPath = logoPath;
            this.Detail = detail;
            this.Order = order;
            this.ColumnID = columnID;
            this.LayerIDs = layerIDs;
            this.TemplateID = templateID;
            this.HtmlFilePath = htmlFilePath;
            this.InsertedTime = insertedTime;
            this.UpdatedTime = updatedTime;
            this.IsHtmlFile = true;
        }
    }
}
